import request from '@/utils/request'

// 查询个人试卷列表
export function personalPaperList(query) {
  return request({
    url: '/study/personalPaper/list',
    method: 'get',
    params: query
  })
}
// 新增个人试卷
export function addpersonalPaper(data) {
  return request({
    url: '/study/personalPaper',
    method: 'post',
    data: data
  })
}


// 获取个人试卷详细信息
export function personalPaperId(id) {
  return request({
    url: `/study/personalPaper/${id}`,
    method: 'get',
  })
}


// 修改个人试卷
export function eitHpersonalPaper(data) {
  return request({
    url: '/study/personalPaper',
    method: 'put',
    data: data
  })
}

// 删除个人试卷
export function delpersonalPaper(id) {
  return request({
    url: `/study/personalPaper/${id}`,
    method: 'delete'
  })
}

// 导出品类列表
export function exporTpersonalPaper(data) {
  return request({
    url: '/study/personalPaper/export',
    method: 'post',
    data: data
  })
}

// 审核个人试卷
export function personalPaperAudit(query) {
  return request({
    url: '/study/personalPaper/audit',
    method: 'get',
    params: query
  })
}